const Rname = document.querySelector('#Register-name')
const Rpwd = document.querySelector('#Register-pwd')
const btn_Rgt = document.querySelector('#Register')
btn_Rgt.onclick=function(){
    const name=Rname.value,pwd=Rpwd.value
    console.log(name,pwd)
    utils.post('./api/user/register.php',{name,pwd},resp=>{
        if(resp.code===200){
            $('#RegisterModal').modal('hide')
            alert(resp.body.msg)
        }else{
            alert(resp.body.msg)
        }
    })
    return false
}